package com.xmy.cultivate.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.xmy.cultivate.entity.Dict;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 字典表 服务类
 * </p>
 *
 * @author min
 * @since 2022-07-26
 */
public interface IDictService extends IService<Dict> {

    public abstract Integer getMaxNumForType(Integer type);

    public abstract IPage<Dict> findAll(IPage<?> page, @Param(Constants.WRAPPER) Wrapper wrapper);

    public abstract List<Map<String,Object>> getList(@Param(Constants.WRAPPER) Wrapper wrapper);

    /**
     *获取是否假期
     * @param num 学期Id
     * @return
     */
    public abstract Integer getIsVacation(Integer num);
}
